From: Chong Yidong Date: Tue, 24 Apr 2007 01:32:41 +0000 (+0000) Subject: (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED values of the X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~601 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0959ef27d11a6ea6178a85fbe51e275d7dfd4cf7;p=emacs.git (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED values of the actual window. --- diff --git a/src/xdisp.c b/src/xdisp.c index 3e6d488cef3..02e59290158 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12777,8 +12777,7 @@ redisplay_window (window, just_this_one_p) int rc; int centering_position = -1; int last_line_misfit = 0; - int save_beg_unchanged = BEG_UNCHANGED; - int save_end_unchanged = END_UNCHANGED; + int save_beg_unchanged, save_end_unchanged; SET_TEXT_POS (lpoint, PT, PT_BYTE); opoint = lpoint; @@ -12843,6 +12842,9 @@ redisplay_window (window, just_this_one_p) set_buffer_internal_1 (XBUFFER (w->buffer)); SET_TEXT_POS (opoint, PT, PT_BYTE); + save_beg_unchanged = BEG_UNCHANGED; + save_end_unchanged = END_UNCHANGED; + current_matrix_up_to_date_p = (!NILP (w->window_end_valid) && !current_buffer->clip_changed